package com.webmagic.house.mapper;

import com.webmagic.house.bean.Building;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BuildingMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Building record);

    int insertSelective(Building record);

    Building selectByPrimaryKey(Integer id);
    @Select("select * from building where project_id = #{projectId} GROUP BY building_id")
    List<Building> selectByProjectId(@Param("projectId") String projectId);



    int updateByPrimaryKeySelective(Building record);

    int updateByPrimaryKey(Building record);
}